Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
e2e-test.yml
workflow configuration and theSora
andSoraConnection
classes to improve memory management and simplify the codebase. The most important changes include updates to the workflow triggers, modifications to theSora
andSoraConnection
constructors, and removal of unused code.Workflow configuration updates:
.github/workflows/e2e-test.yml
: Addedfeature/fix-memoryleak3
branch to thepush
event and includedpush
in the job conditions to ensure the workflow runs on pushes to this branch. [1] [2] [3] [4]Codebase simplification and memory management improvements:
src/sora.cpp
: ModifiedSora::CreateConnection
to passfactory_
toSoraConnection
and removed the management ofweak_connections_
. [1] [2]src/sora.h
: Changedfactory_
to ashared_ptr
and removedweak_connections_
from theSora
class. [1] [2]src/sora_connection.cpp
: UpdatedSoraConnection
constructor to accept ashared_ptr<SoraFactory>
and setconn_
andfactory_
tonullptr
in the destructor. [1] [2]src/sora_connection.h
: Addedfactory_
as a member ofSoraConnection
and updated the constructor to accept it. [1] [2] [3]src/sora_sdk_ext.cpp
: Removedsora_tp_traverse
andsora_tp_clear
functions and their associated type slots, simplifying theSora
class definition. [1] [2]